package com.ding.dailyup.controller.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

import com.ding.dailyup.service.HotIndustryService;

@Controller
public class GetHotIndustryJob {

    private static Logger logger = LoggerFactory
            .getLogger(GetHotIndustryJob.class);
    @Autowired
    private HotIndustryService hotIndustryService;

    @Scheduled(cron = "0 30 15 * * ?")
    public void downloadHotIndustry(){
        logger.info("============== downloadHotIndustry 任务开始 ==============");
        hotIndustryService.downloadHotIndustry();
        logger.info("============== downloadHotIndustry 任务结束 ==============");
    }
}
